package com.yq.ylmall.dto.cart;

import com.yq.ylmall.enums.product.ProductCheck;
import com.yq.ylmall.enums.product.ProductStatus;
import com.yq.ylmall.model.base.BasePage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel(description = "购物车查询参数")
public class CartInfoQueryDto extends BasePage {

    @ApiModelProperty(value = "会员id")
    private Long userId;

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "商品sku类型")
    private Long skuType;

    @ApiModelProperty(value = "商品sku编号")
    private Long skuId;

    @ApiModelProperty(value = "商品sku名字")
    private String skuName;

    @ApiModelProperty(value = "放入购物车时价格")
    private BigDecimal cartPrice;

    @ApiModelProperty(value = "商品购买的数量")
    private Integer skuNum;

    @ApiModelProperty(value = "限购数量")
    private Integer perLimit;

    @ApiModelProperty(value = "线上状态：0-初始值，1-上架，-1-自主下架")
    private ProductStatus status;

    @ApiModelProperty(value = "审核状态：0-初始值，1-通过，-1-未通过")
    private ProductCheck isChecked;

    @ApiModelProperty(value = "仓库id")
    private Integer wareId;
}
